﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YunCMS.Common;

namespace YunCMS.Web.Admin
{
    public partial class Index : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["username"] != null)
                {

                }
                else
                {
                    Response.Redirect("Login.aspx");
                }
            }
        }

       

        protected void btnLogout_Click(object sender, EventArgs e)
        {
            Session[Const.USER_AUTHORITY] = null;
            Session["username"] = null;
            Response.Redirect("Login.aspx");
        }
    }
}